﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace AudioBook.AudioManagement.Interface
{
    public class BasePage : System.Web.UI.Page
    {
        public BaseSearchParam SearchParam
        {
            get
            {
                return (BaseSearchParam)Session["SEARCH_STATE"];
            }
            set
            {
                Session["SEARCH_STATE"] = value;
            }
        }

        protected override void OnInit(System.EventArgs e)
        {
            if (!IsPostBack)
            {
                SearchParam = null;
            }

            base.OnInit(e);
        }
    }
}
